home *** CD-ROM | disk | FTP | other *** search
-
-
-
-
- APPEND(QUEL) 1/26/79 APPEND(QUEL)
-
-
-
- NAME
- append - append tuples to a relation
-
- SYNOPSIS
- _a_p_p_e_n_d [_t_o] relname (target_list) [_w_h_e_r_e qual]
-
- DESCRIPTION
- _A_p_p_e_n_d adds tuples which satisfy the qualification to _r_e_l_-
- _n_a_m_e. _R_e_l_n_a_m_e must be the name of an existing relation.
- The _t_a_r_g_e_t__l_i_s_t specifies the values of the attributes to be
- appended to _r_e_l_n_a_m_e. The domains may be listed in any ord-
- er. Attributes of the result relation which do not appear
- in the _t_a_r_g_e_t__l_i_s_t as result_attnames (either explicitly or
- by default) are assigned default values of 0, for numeric
- attributes, or blank, for character attributes.
-
- Values or expressions of any numeric type may be used to set
- the value of a numeric type domain. Conversion to the result
- domain type takes place. Numeric values cannot be directly
- assigned to character domains. Conversion from numeric to
- character can be done using the _a_s_c_i_i operator (see
- quel(quel)). Character values cannot be directly assigned
- to numeric domains. Use the _i_n_t_1, _i_n_t_2, etc. functions to
- convert character values to numeric (see quel(quel)).
-
- The keyword _a_l_l can be used when it is desired to append all
- domains of a relation.
-
- An _a_p_p_e_n_d may only be issued by the owner of the relation or
- a user with _a_p_p_e_n_d permission on the given relation.
-
- EXAMPLE
- /* Make new employee Jones work for Smith */
- range of n is newemp
- append to emp(n.name, n.sal, mgr = "Smith", bdate = 1975-n.age)
- where n.name = "Jones"
- /* Append the newemp1 relation to newemp */
- range of n1 is newemp1
- append to newemp(n1.all)
-
- SEE ALSO
- copy(quel), permit(quel), quel(quel), retrieve(quel)
-
- DIAGNOSTICS
- Use of a numeric type expression to set a character type
- domain or vice versa will produce diagnostics.
-
- BUGS
- Duplicate tuples appended to a relation stored as a ``paged
- heap'' (unkeyed, unstructured) are not removed.
-
-
-